package com.gun.management.module.raffle.controller.admin.lotteryrule.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;


@Schema(description = "管理后台 - 抽奖规则新增/修改 Request VO")
@Data
public class LotteryRuleSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "25009")
    private Long id;

    /**
     * 产品id
     */
    @Schema(description = "产品id", example = "1")
    private Long productId;


    /**
     * 商品id
     */
    @Schema(description = "sku商品id", example = "1")
    private Long skuId;



    @Schema(description = "奖品头像")
    private String avatar;

    @Schema(description = "奖品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "奖品名称不能为空")
    private String name;

    @Schema(description = "奖品类型(对应数据字典su_goods_type)", example = "4255")
    private Long categoryId;

    @Schema(description = "提示语")
    private String prompt;

    @Schema(description = "奖品概率")
    private Integer prizeProbability;

    @Schema(description = "奖品个数限制")
    private Integer prizeQty;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;


    @Schema(description = "备注",   example = "备注:限制添加规则数量默认值为0")
    private String remark;

}